import Vue from 'vue'
import App from './App.vue'
import 'element-ui/lib/theme-chalk/index.css';
import ElementUI from 'element-ui';
import router from './router/index.js'
import store from './store/index.js'
import axios from 'axios'
import {Base64} from 'js-base64';
import { ProtoJSFileImport } from './protobuf/ProtoJSFileImport.js'; // 导入绑定proto的js文件
import  WebSocketTools  from './websocket/WebSocketTools'; // 导入工具类的js文件

ProtoJSFileImport(Vue) // 调用方法传入Vue实例去绑定proto文件
Vue.config.productionTip = false
Vue.use(ElementUI);
Vue.prototype.$base64 = Base64
Vue.prototype.$axios = axios
Vue.prototype.$webSocketTools = WebSocketTools
axios.defaults.baseURL = 'http://localhost:7001' //全局绑定axios地址

new Vue({
  el: '#app',
  render: h => h(App),
  router,
  store
})
